package de.homelabs.hlmodules.cms.dev;

import java.util.List;

import org.springframework.context.ApplicationContextAware;

import de.homelabs.hlmodules.cms.menu.domain.HLMenuEntry;

public interface IHLMenuManager_old extends ApplicationContextAware{

	/**
	 * returns a mainmenu list
	 * 
	 * @return List<HLMenuEntry> 
	 */
	List<HLMenuEntry> getMainMenuEntries();
	
	/**
	 * returns a submenu list
	 * 
	 * @return List<HLMenuEntry>
	 */
	List<HLMenuEntry> getSubMenuEntries();
	
	/**
	 * renders the mainmenu
	 * 
	 * @return StringBuffer
	 */
	StringBuffer renderMainmenu();
	
	/**
	 * renders the submenu
	 * 
	 * @return StringBuffer
	 */
	StringBuffer renderSubmenu();
	
	/**
	 * add a main menu entry
	 * 
	 * @param menuEntry
	 * @return boolean
	 */
	boolean addMainmenuEntry(HLMenuEntry menuEntry);
	
	/**
	 * remove a main menu entry
	 * 
	 * @param menuEntry
	 * @return boolean
	 */
	boolean removeMainmenuEntry(HLMenuEntry menuEntry);
	
	/**
	 * add a sub menu entry
	 * 
	 * @param menuEntry
	 * @return boolean
	 */
	boolean addSubmenuEntry(HLMenuEntry menuEntry);
	
	/**
	 * remove a sub menu entry
	 * 
	 * @param menuEntry
	 * @return boolean
	 */
	boolean removeSubmenuEntry(HLMenuEntry menuEntry);
}
